package com.li.service;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.agent.tool.Tool;
import dev.langchain4j.agent.tool.ToolMemoryId;
import org.springframework.stereotype.Service;

@Service
public class ToolService {
    @Tool("退票")
    public String canalTicketBooking(@ToolMemoryId String id,@P("姓名")String name,@P("车票订单号")String ticketId){
        //退票业务...
        System.out.println("姓名:"+name+"\n"+"车票订单号:"+ticketId);
        return "退票成功";
    }
}
